package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class StudentController {

    @RequestMapping("/hello")
    public String sayHello(){
        log.info("hello,i am info");
        log.warn("hello,i am warn");

        return "Hello Spring Boot";
    }
}
